<?php
# keyword abstract ues for defin abstract class
abstract class ACanEat {

    abstract public function eat($food);

    public function breath() {
        echo "Breath use the air. <br>" ;
    }
}

class Human extends ACanEat {
    # extends class must be declare abstract class
    public function eat($food) {
        echo "Human eating " . $food . "<br>";
    }
}

class animal extends ACanEat {
    public function eat($food) {
        echo "Animal eating " . $food . "<br>";
    }
}

$obj = new Human();
$obj->eat("food");
$obj->breath();

$monkey= new animal();
$monkey->eat("banana");
$monkey->breath();

?>
